/* 响应式设计样式 */

/* 移动端适配 */
@media (max-width: 768px) {
  /* 侧边栏在移动端隐藏 */
  .sidebar-container {
    display: none !important;
  }
  
  /* 主容器全宽 */
  .main-container {
    width: 100% !important;
  }
  
  /* 头部导航优化 */
  .header {
    padding: 0 10px;
  }
  
  .header-left .breadcrumb {
    display: none;
  }
  
  .header-right {
    gap: 10px;
  }
  
  .search-input {
    width: 150px !important;
  }
  
  .username {
    display: none;
  }
  
  /* 内容区域优化 */
  .content-main {
    padding: 10px;
  }
  
  /* 卡片优化 */
  .el-card {
    margin-bottom: 10px;
  }
  
  /* 表格优化 */
  .el-table {
    font-size: 12px;
  }
  
  .el-table .el-table__cell {
    padding: 8px 4px;
  }
  
  /* 分页优化 */
  .el-pagination {
    justify-content: center;
  }
  
  .el-pagination .el-pagination__sizes,
  .el-pagination .el-pagination__jump {
    display: none;
  }
  
  /* 搜索区域优化 */
  .search-area {
    padding: 10px;
  }
  
  .search-area .el-form {
    flex-direction: column;
  }
  
  .search-area .el-form-item {
    margin-bottom: 10px;
    width: 100%;
  }
  
  /* 按钮组优化 */
  .header-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .header-actions .el-button {
    width: 100%;
  }
  
  /* 对话框优化 */
  .el-dialog {
    width: 95% !important;
    margin: 0 auto;
  }
  
  /* 表单优化 */
  .el-form .el-row {
    flex-direction: column;
  }
  
  .el-form .el-col {
    width: 100% !important;
  }
  
  /* 统计卡片优化 */
  .stats-row .el-col {
    margin-bottom: 10px;
  }
  
  .stat-content {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  /* 图表优化 */
  .charts-row .el-col {
    margin-bottom: 20px;
  }
  
  .chart-container {
    height: 250px !important;
  }
  
  /* 快捷操作优化 */
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .quick-actions .el-button {
    width: 100%;
    height: 40px;
  }
}

/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar-container {
    width: 64px !important;
  }
  
  .sidebar-container .logo-text {
    display: none;
  }
  
  .search-input {
    width: 200px !important;
  }
  
  .charts-row .el-col {
    margin-bottom: 20px;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .header {
    padding: 0 5px;
  }
  
  .content-main {
    padding: 5px;
  }
  
  .search-area {
    padding: 5px;
  }
  
  .el-table {
    font-size: 11px;
  }
  
  .el-dialog {
    width: 98% !important;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 12px;
  }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .header {
    height: 50px;
  }
  
  .content-main {
    padding: 5px;
  }
  
  .chart-container {
    height: 200px !important;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .el-button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .el-table .el-table__cell {
    padding: 12px 8px;
  }
  
  .el-menu-item {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
  }
  
  .el-sub-menu .el-sub-menu__title {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .el-icon {
    font-size: 16px;
  }
  
  .stat-icon {
    font-size: 20px;
  }
}

/* 打印样式 */
@media print {
  .header,
  .sidebar-container,
  .el-button,
  .el-pagination {
    display: none !important;
  }
  
  .main-container {
    width: 100% !important;
  }
  
  .content-main {
    padding: 0 !important;
  }
  
  .el-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
